package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

/**
 * @author ck
 * @date 2021/10/13 11:45
 */

public interface DishService extends IService<Dish> {
    public void saveWithFlavor(DishDto dishDto);

    public void updateWithFlavor(DishDto dishDto);

    public  DishDto getByIdWithFlavor(Long id);

    public void updateWithStatus(int status, List<Long> ids);

    public void deleteByIds(List<Long> ids);

    public R<Page> pageCat(int page,int pageSize,String name);

    public R<List<DishDto>> catList(Dish dish);
}
